<template>
  <div id="list">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>库存管理</span>
      </div>
      <div id="shuju">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>数据列表</span>
          </div>
          <div id="card">
            <el-table :data="tableData" :default-sort="{prop: 'xh', order: 'ascending'}" border height="400" style="width: 100%">
              <el-table-column type="selection" width="55">
              </el-table-column>
              <el-table-column fixed prop="xh" label="序号" width="95">
              </el-table-column>
              <el-table-column prop="sphh" label="商品货号" width="180">
              </el-table-column>
              <el-table-column prop="spmc" label="商品名称" width="180">
              </el-table-column>
              <el-table-column prop="splx" label="商品类型" width="180">
              </el-table-column>
              <el-table-column sortable prop="cima" label="尺码" width="120">
              </el-table-column>
              <el-table-column prop="txm" label="条形码" width="120">
              </el-table-column>
              <el-table-column prop="kcun" label="库存" width="120">
              </el-table-column>
              <el-table-column prop="sfqy" label="是否启用" width="120">
              </el-table-column>
              <el-table-column fixed="right" label="操作" width="120">
                <template slot-scope="scope">
                  <el-button @click.native.prevent="deleteRow(scope.$index, tableData)" type="text">
                    删除
                  </el-button>

                </template>
              </el-table-column>
            </el-table>
          </div>
        </el-card>
      </div>
      <div id="fenye">
        <div class="block">
          <el-pagination :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="400">
          </el-pagination>
        </div>
      </div>
      <div></div>
    </el-card>
  </div>
</template>
<style scopd>
.anniu {
  height: 40px;
}
.input {
  width: 200px;
  margin-left: 20px;
  margin-right: 50px;
}
#anniu1 {
  text-align: center;
  margin-top: 40px;
}
#input1 {
  text-align: center;
}
#card {
  margin-top: 20px;
}
#shuju {
  margin-top: 10px;
}
#fenye {
  margin-top: 10px;
  text-align: center;
}
</style>
  <script>
export default {
  data() {
    return {
      input: '',
      input2: '',
      input3: '',
      select: '',
      options: [{
        value: '选项1',
        label: 'A货'
      }, {
        value: '选项2',
        label: 'B货'
      }, {
        value: '选项3',
        label: 'C货'
      },],
      value: '',
      tableData: [{
        xh: '1',
        sphh: '80088208819',
        spmc: '乔丹',
        splx: '1518549238',
        cima: '999.0',
        txm: '运动服',
        kcun: '名牌',
        sfqy: '已上架',
        czuo: '822'
      }, {
        xh: '2',
        sphh: '80088208813',
        spmc: '李宁',
        splx: '1518549238',
        cima: '999.0',
        txm: '运动服',
        kcun: '名牌',
        sfqy: '已上架',
        czuo: '822'
      }, {
        xh: '3',
        sphh: '80088208810',
        spmc: '行',
        splx: '1518549238',
        cima: '999.0',
        txm: '运动服',
        kcun: '名牌',
        sfqy: '已上架',
        czuo: '822'
      }, {
        xh: '4',
        sphh: '80088208820',
        spmc: '鸿星尔克',
        splx: '1518549238',
        cima: '999.0',
        txm: '运动服',
        kcun: '名牌',
        sfqy: '已上架',
        czuo: '822'
      }, {
        xh: '5',
        sphh: '80088208820',
        spmc: '花花公子',
        splx: '1518549238',
        cima: '999.0',
        txm: '运动服',
        kcun: '名牌',
        sfqy: '已上架',
        czuo: '822'
      }]

    }
  }
}
</script>